package pchi.pchicamera.helpers;

import java.io.File;

import android.os.Environment;

public class ExternalStorageHelpers {

	/*
	 * if (currentDir.getName().equalsIgnoreCase(Contants.ThumbnailFolder))
	 * return;
	 */
	public static boolean externalStorageAvailable() {
		String state = Environment.getExternalStorageState();

		if (Environment.MEDIA_MOUNTED.equals(state)
				|| Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) {
			return true;
		}

		return false;
	}

	public static void deleteFile(String path) {
		try {
			File file = new File(path);
			file.delete();
		} catch (Exception e) {

		}

	}

}
